<script setup>
import {ref} from 'vue'
import axios from 'axios'
import {ElMessage,ElMessageBox} from 'element-plus'

const tableData =ref([])

</script>

<template>
  <div>
    <h2 class="mycar" style="color: #f6ce2d">我的购物车</h2>
    <span style="float: right">温馨提示：产品是否购买成功，以最终下单为准哦，请尽快结算。</span>
    <el-divider />
    <div class="table">
      <el-table :data="tableData" style="width: 90%">
        <el-table-column type="selection" width="55" />
        <el-table-column prop="全选" label="全选" width="180" align="center" />
        <el-table-column prop="gid" label="商品id" hidden width="180" align="center" />
        <el-table-column prop="gname" label="商品名称" width="180" align="center" />
        <el-table-column prop="gimage" label="商品图片" width="180" align="center" />
        <el-table-column prop="price" label="单价" align="center" />
        <el-table-column prop="操作" label="操作" align="center" />
      </el-table>
    </div>
  </div>
</template>

<style scoped>
.mycar{
  width: 80%;
  margin-left: 180px;
  display: flex;
  justify-content: space-between;
}

.table{
  margin-left: 180px;
}
</style>